# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=fdkaac
pkgver=1.0.2
pkgrel=0
pkgdesc="Command line frontend for libfdk-aac"
url="https://github.com/nu774/fdkaac"
arch="all"
license="BSD-4-Clause AND MIT AND Zlib"
makedepends="autoconf automake fdk-aac-dev"
subpackages="$pkgname-doc"
source="https://github.com/nu774/fdkaac/archive/v$pkgver/fdkaac-$pkgver.tar.gz"
options="!check" # no testsuite

prepare() {
	default_prepare
	autoreconf -vfi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="32374fe8d7e129134d21c5f36ddcdf76307193b42e3c4d4cd13a1caf3088f81114368d1c008284add65052b678dd8eeb704ecaa25c385031f402da61dc798d1c  fdkaac-1.0.2.tar.gz"
